namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0051 : DbMigration
    {
        public override void Up()
        {
            DropForeignKey("dbo.IcmOfficeSuppliesLot", "OfficeSupplyLotStatusId", "dbo.IcmInventoryStockTaking");
            DropIndex("dbo.IcmOfficeSuppliesLot", new[] { "OfficeSupplyLotStatusId" });
            AddForeignKey("dbo.IcmOfficeSuppliesLot", "OfficeSupplyLotStatusId", "dbo.IcmMasLookUp", "LookUpId");
            CreateIndex("dbo.IcmOfficeSuppliesLot", "OfficeSupplyLotStatusId");
        }
        
        public override void Down()
        {
            DropIndex("dbo.IcmOfficeSuppliesLot", new[] { "OfficeSupplyLotStatusId" });
            DropForeignKey("dbo.IcmOfficeSuppliesLot", "OfficeSupplyLotStatusId", "dbo.IcmMasLookUp");
            CreateIndex("dbo.IcmOfficeSuppliesLot", "OfficeSupplyLotStatusId");
            AddForeignKey("dbo.IcmOfficeSuppliesLot", "OfficeSupplyLotStatusId", "dbo.IcmInventoryStockTaking", "StockTakingId");
        }
    }
}
